// 奖惩表
import request from "@/utils/request";
//查询奖惩模版的接口（分页查询） /tool/budgetAct/list
export const getBudgetActListApi = params => {
  return request({
    url: `/tool/budgetAct/list`,
    params
  });
};
// 新增单个奖惩模版的接口 /tool/budgetAct/add
export const addBudgetActApi = data => {
  return request({
    url: `/tool/budgetAct/add`,
    method: "post",
    data
  });
};
//编辑奖惩模版的接口 /tool/budgetAct/edit
export const editBudgetActApi = data => {
  return request({
    url: `/tool/budgetAct/edit`,
    method: "put",
    data
  });
};
// 删除奖惩模版的接口/tool/budgetAct/remove/{id}
export const removeBudgetActApi = id => {
  return request({
    url: `/tool/budgetAct/remove/${id}`,
    method: "DELETE"
  });
};
//查询奖惩清单 /tool/budgetAction/list
export const getBudgetActionListApi = params => {
  return request({
    url: `/tool/budgetAction/list`,
    params
  });
};
// 新增奖惩清单/tool/budgetAction/add
export const addBudgetActionApi = data => {
  return request({
    url: `/tool/budgetAction/add`,
    method: "post",
    data
  });
};
//  修改奖惩清单/tool/budgetAction/edit
export const editBudgetActionApi = data => {
  return request({
    url: `/tool/budgetAction/edit`,
    method: "put",
    data
  });
};
// 删除奖惩清单/tool/budgetAction/remove/{id}
export const removeBudgetActionApi = id => {
  return request({
    url: `/tool/budgetAction/remove/${id}`,
    method: "DELETE"
  });
};
